package com.cms.setting.basicset.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cms.setting.basicset.dao.MainInDustryDAO;
import com.cms.setting.basicset.pojo.MainInDustry;
import com.cms.setting.basicset.service.MainInDustryService;
@Service
public class MainInDustryServiceImpl implements MainInDustryService{
	@Autowired
	MainInDustryDAO mainInDustryDAO;
	@Override
	public boolean saveMainInDustry(MainInDustry mainInDustry) {
		if(mainInDustry.getId()==null){
			return mainInDustryDAO.insert(mainInDustry)>0;
		}else{
			return false;
		}
	}

	@Override
	public boolean deleteById(Integer id) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public MainInDustry findById(Integer id) {
		return mainInDustryDAO.selectByPrimaryKey(id);
	}

	@Override
	public List<MainInDustry> findList() {
		// TODO Auto-generated method stub
		return null;
	}

}
